package com.multysite.util;

import com.google.appengine.api.utils.SystemProperty;

public class Setting {
	private static String generalNamespace = "MULTYSITE";
	private static String domain = "multywebsite.appspot.com";

	public static String getGeneralNamespace() {
		return generalNamespace;
	}

	public static void setGeneralNamespace(String generalNamespace) {
		Setting.generalNamespace = generalNamespace;
	}

	public static String getDomain() {
		if (SystemProperty.environment.value() == SystemProperty.Environment.Value.Production) {
			return domain;
		} else {
			return "multysite.com";
		}
	}

	public static void setDomain(String domain) {
		Setting.domain = domain;
	}

}
